package cn.yqn.org.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.yqn.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author yqn
 * @since 2022-07-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain{

    @Excel(name="店铺名称",width = 30)
    private String name;

    @Excel(name="店铺电话",width = 30)
    private String tel;

    @Excel(name="注册日期",width = 30,exportFormat="yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 0: 待审核
     * 1：审核通过
     * 2：激活
     * -1：驳回
     */
    @Excel(name="店铺状态",width = 10)
    private Integer state = 0;

    @Excel(name="店铺地址",width = 50)
    private String address;

    @Excel(name="店铺logo",width = 30)
    private String logo;

    @Excel(name="店长id",width = 20)
    private Long admin_id; // 店长id， 对应employee

    /**
     * admin:{  // 店员信息
     *           username:"",
     *           phone:"",
     *           email:"",
     *           password:"",
     *           comfirmPassword:""
     *         },
     */
    // 对应上面的admin_id
    private Employee admin;
}

